package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 接口日志
 * </p>
 *
 * @author zr
 * @since 2020-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_gateway_log")
@ApiModel(value="GatewayLog对象", description="接口日志")
public class GatewayLog extends Model<GatewayLog> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "请求url")
    @TableField("req_url")
    private String reqUrl;

    @ApiModelProperty(value = "请求时间")
    @TableField("req_time")
    private LocalDateTime reqTime;

    @ApiModelProperty(value = "响应时间")
    @TableField("resp_time")
    private LocalDateTime respTime;

    @ApiModelProperty(value = "请求内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "响应内容")
    @TableField("response")
    private String response;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "医院标识")
    @TableField("uid")
    private Integer uid;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
